#pragma once

#include "ComClient.h"
#include "board.h"
#include "move.h"
#include <string>

class GameLoopClient {
public:
	GameLoopClient(ComClient* aClient, std::string aClientIdent, CheckerColor player);
	Move (*chooseMove) (Board currentBoard);
	void Run();
	
	CheckerColor Player;
private:
	ComClient* client;
	std::string clientIdent;
	
	Board currentBoard;

	bool ShakeHand();
	bool ServerRequestMove();
	bool SendMove(Move aMove);
};